from datetime import datetime
def printf(text,color="white",end=None):
    now = datetime.now()
    current_time = now.strftime("%H:%M:%S")
    if color == "red":
        if end != None:
            print("{} [INFO] ".format(current_time)+"\033[1;31m{}\033[0m".format(text),end=end)
        else:
            print("{} [INFO] ".format(current_time)+"\033[1;31m{}\033[0m".format(text))
    elif color == "green":
        if end != None:
            print("{} [INFO] ".format(current_time)+"\033[1;32m{}\033[0m".format(text),end=end)
        else:
            print("{} [INFO] ".format(current_time)+"\033[1;32m{}\033[0m".format(text))
    elif color == "yellow":
        if end != None:
            print("{} [INFO] ".format(current_time)+"\033[1;33m{}\033[0m".format(text),end=end)
        else:
            print("{} [INFO] ".format(current_time)+"\033[1;33m{}\033[0m".format(text))
    elif color == "blue":
        if end != None:
            print("{} [INFO] ".format(current_time)+"\033[1;34m{}\033[0m".format(text),end=end)
        else:
            print("{} [INFO] ".format(current_time)+"\033[1;34m{}\033[0m".format(text))
    elif color == 'white':
        if end != None:
            print("{} [INFO] ".format(current_time)+"\033[1;37m{}\033[0m".format(text),end=end)
        else:
            print("{} [INFO] ".format(current_time)+"\033[1;37m{}\033[0m".format(text))
